import { createRouter, createWebHistory } from 'vue-router'
import LLMStudio from '@/views/LLMStudio/llmAgent.vue'
import ChatModelPanel from '@/views/LLMStudio2/ChatModelPanel/index.vue'
import Tools from '@/views/LLMStudio/tools/index.vue'
import Datasets from '@/views/LLMStudio/datasets/index.vue'
import Build from '@/views/LLMStudio/build/index.vue'
import BuilderModelPanel from '@/views/LLMStudio2/BuilderModelPanel/index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/llm-studio2/apps'
    },
    {
      path: '/llm-studio/apps',
      name: 'apps',
      component: LLMStudio
    },
    {
      path: '/llm-studio/tools',
      name: 'tools',
      component: Tools
    },
    {
      path: '/llm-studio/datasets',
      name: 'datasets',
      component: Datasets
    },
    {
      // /llm-studio/build/125555555 125555555 是 id
      path: '/llm-studio/build/:pathMatch([0-9]+)',
      name: 'build',
      component: Build
    },
    {
      path: '/llm-studio/chat/:id',
      name: 'chat',
      component: ChatModelPanel
    },
    {
      path: '/llm-studio/builder/:id',
      name: 'builder',
      component: BuilderModelPanel
    }
  ]
})

export default router
